package com.md.service;

import java.io.Serializable;
import java.util.List;

public interface BaseService<T, PK extends Serializable> {

	public int insert(T obj);

	public int insert(String statement, Object parameter);

	public int insert(String statement);

	public int update(T obj);

	public int update(String statement, Object parameter);

	public int update(String statement);

	public int delete(PK id);

	public int delete(String statement, Object parameter);

	public int delete(String statement);

	public List<T> getObjectList(String statement);// 获取分析不分页LIST，返回Object list

	public List<T> getObjectList(String statement, Object parameter);

	public T getOne(Object parameter);

	public T getOne(String statement, Object parameter);

	public Object selectOne(String statement, Object parameter);

	public Integer getNumber(String statement);

	public Integer getNumber(String statement, Object parameter);

}
